package com.ayang818.learn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName TemplateController
 * @Dessription TODO
 * @Author 杨丰畅
 * @Date 2019/11/28 12:55
 **/
@Controller
public class HelloController {

    @RequestMapping("/")
    public String hello(Model model) {
        model.addAttribute("message", "hello ssm");
        System.out.println("hello world");
        return "index";
    }
}
